* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2c3e50; /* 备用背景色 */
    font-family: 'Arial', sans-serif;
    position: relative; /* 添加相对定位 */
}

.container {
    width: 50%;
    text-align: center;
    padding: 40px 20px; /* 调整内边距 */
}

#search-input {
    width: 100%;
    padding: 15px 25px 15px 50px; /* 增加左侧内边距为图标腾出空间 */
    font-size: 18px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    outline: none;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
}

#search-input::placeholder {
    color: white; /* placeholder文字为白色 */
    opacity: 0.7; /* 可选：添加透明度使placeholder更柔和 */
}

#search-input:focus {
    background-color: rgba(255, 255, 255, 0.629);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    color: black; /* 聚焦时文字为黑色 */
}

#search-button {
    display: none;
}

#search-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bottom-right-datetime {
    position: absolute;
    bottom: 30px;
    right: 30px;
    text-align: center;
    /* 移除可能限制宽度的属性 */
    width: auto;
}

.bottom-right-datetime .date {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    letter-spacing: 1px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bottom-right-datetime .time {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace; /* 使用等宽字体确保数字宽度一致 */
    transition: color 1s ease, text-shadow 1s ease;
    /* 确保文本抗锯齿，提高清晰度 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 调整固定宽度，确保足够容纳时间文本 */
    width: 120px; /* 增加宽度以确保时间文本能够完整显示 */
    text-align: center;
    white-space: nowrap; /* 防止换行 */
    margin: 0 auto; /* 确保水平居中 */
}
